<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Description" content="Cynthia项目缺陷管理系统，拥有表单流程化设计，可视化拖动布局等功能，提供项目管理，缺陷管理，，统计，查询等服务，是您项目上的好帮手！">
<meta name="Keywords" content="Cynthia,BUG管理,项目管理 ,缺陷管理,任务管理,BUG,缺陷,开源">
<title>欢迎使用Cynthia</title>

<link href="lib/bootstrap2/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="lib/bootstrap2/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css">
<link href="lib/g_bootstrap/css/google-bootstrap.css" rel="stylesheet" type="text/css">

<link href='lib/select2/select2.css' rel="stylesheet" style="text/css">
<link href='lib/fileUpload/uploadify.css' rel="stylesheet" style="text/css">

<!--[if !IE]><!-->
	<link rel="stylesheet" href="lib/Font-Awesome/css/font-awesome.min.css">
<!--<![endif]-->  
<link href="lib/jquery.plugins/color-picker/colorPicker.css" rel="stylesheet" type="text/css">

<link href="css/top.css" rel="stylesheet" type="text/css">
<link href="css/taskManagement.css" rel="stylesheet" type="text/css">
	
<script type="text/javascript" src='lib/jquery/jquery-1.9.3.min.js'></script>
<script type="text/javascript" src='lib/bootstrap2/js/bootstrap.cynthia.min.js'></script>
<script type="text/javascript" src='lib/select2/select2.js'></script>
<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="lib/editor/kindeditor.js"></script>
<script type="text/javascript" src="lib/editor/lang/zh_CN.js"></script>
<script type="text/javascript" src='lib/jquery.plugins/color-picker/jquery.colorPicker.js'></script>

<script type="text/javascript" src="js/order.js"></script>
<script type="text/javascript" src='js/util.js'></script>	
<script type="text/javascript" src='js/newTaskManagement.js'></script>
<script type="text/javascript" src='js/index_grid.js'></script>
<script type="text/javascript" src="js/where.js"></script>
<script type="text/javascript" src="js/tag.js"></script>
<script type="text/javascript" src="js/previewFilter.js"></script>
<!--  uploadfile -->
<script type="text/javascript" src="lib/fileUpload/jquery.Huploadify.js"></script>
<script type="text/javascript" src="lib/fileUpload/jquery.uploadify.js"></script>
<script type="text/javascript" src="lib/fileUpload/fileUploadHandler.js"></script>

</head>

<body>

<div class="container-fluid">
	<div id="header-nav"></div>
	<div class="row-fluid titleContent">
		<div class="span12">
			<div class="row-fluid">
				<div class="span12 topBtnGroup" style="z-index:9999;">
					<div class="span11">
						<a href="taskManagement.html?operation=create" id="newDataLink" target="_blank" class="btn"><i class="icon-plus" title='新建'></i></a>
						<div class="btn-group">
							<a id="actionButton" class="btn dropdown-toggle btn-danger" data-toggle="dropdown" href="#">
							              动作
							    <span class="caret"></span>
						    </a>
						    <ul class="dropdown-menu" id='select_next_action_top'>
								<li><a href="#" data-toggle="modal" onclick="initModifyData();">修改</a></li>
								<li><a href="#" data-toggle="modal" onclick="initCloseData();">关闭</a></li>
						     	<li class="divider"></li>
						     	<li><a href="#" onclick="alertClose();">删除</a></li>
					    	</ul>
						</div>
						<button class="btn btn-primary" id='top_edit_li'><i class="icon-edit" title='编辑'></i></button>
						<div class="btn-group" style='margin-left: 0px;'>
							<a class="btn dropdown-toggle btn-info" id="tagLinkTitle" data-toggle="dropdown" href="#">
						  		  标记为
						   	 <span class="caret"></span>
					  	  	</a>
					  	 <ul id="ul-tag" class="dropdown-menu" style="min-width:150px;">
<!-- 					     	<li><a href='#' onclick="tagDataMoveOut();">取消所有标记</a></li> -->
<!-- 					     	<li id="tagMoveOut"><a href='#' style="display: none;" onclick="tagIdMoveOut();">移出标签</a></li> -->
							<li class='divider'></li>
				    	</ul>
						</div>
						<a href="#" onclick="showSendMail();" class="btn"><i class="icon-envelope" title='新建邮件'></i></a>
						<div id="titleSpan" style="margin-left:320px;"></div>
<!-- 						<a id="titleCopyImg" href="#" title="复制标题" style="position:absolute;left:300px;top:7px;"><img src="/images/copycode.gif" alt="复制代码"></a> -->
					</div>
					<div class="span1">
						<div id="header_img" style="float: right;margin-right: 40px;margin-top: 2px;"></div>
					</div>
				</div>
			</div>
			<div class="row-fluid paddingLeft">
				<div class="span4">
					<form class="form-horizontal" id='baseFieldForm'>
					</form>
					<form class="form-horizontal" id='actionForm'>
					</form>
				</div>
				<div class="span8" id='descriptionDiv'>
					<textarea rows="0" cols="0" id="input_taskDescription" style="display: none;"></textarea>
				</div>
			</div>
		</div>
	</div>
	<div class="row-fluid mainContent">
		<div class="span12">
			<div class="row-fluid">
				<div class="span12 contentTitle" id="layoutContentTitle">
					<span class="label label-info" onclick="displayFieldsContent(this)" style="cursor:pointer;">收起</span>
					<span class="label label-warning" id="setAllValue" onclick="setAllDefaultValues()" style="float:right;cursor:pointer;">设置所有默认</span>
				</div>
			</div>
			<div class="row-fluid">
				<div class="span12 paddingLeft" id='layoutContent'>
					<!-- 生成布局的部分 -->
					<div class="row-fluid">
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="row-fluid" style="margin-bottom: 20px;">
		<div class="span12" id='logInfoDiv' style="display: none;">
			<div class="row-fluid">
				<div class="span12 contentTitle">
					<div style="float: left;" id="displayLogDiv"><span class="label label-info" style="cursor:pointer;" onclick="displayLogDiv();return false;">隐藏日志</span></div>
					<div style="float: right;" id="displayEmptyLogDiv"><span class="label label-info" style="cursor:pointer;" onclick="displayNullLogDiv();return false;">隐藏空日志</span></div>
				</div>
			</div>
			<div class="row-fluid">
				<div class="span12" id='logContentDiv'>
					
				</div>
			</div>
		</div>
	</div>	
</div>

<div id="topSubmitDiv">
</div>

<!-- 上传附件modal -->
<div id="uploadFileDiv" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="tag modal" aria-hidden="true" style="postion:absolute;top:100px;">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h5>上传文件</h5>
    </div>
    <div class="modal-body">
	 		<table class='table'>
	    	<tr>
	      		<td>
	      			<div id="fileInput"></div>
	      		</td>
	    	</tr>
	 		</table>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true" id=executeCancelUploadFile()>取消</button>
        <button class="btn btn-primary" onclick="executeSubmitUploadFile()">开始上传</button>
    </div>
</div>

<!-- 发送邮件modal -->
<div id="send_mail_win" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="tag modal" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h5>发送邮件</h5>
    </div>
    <div class="modal-body">
    	<form class="form-horizontal">
            <div class="control-group" style="margin-bottom: 20px;">
                <label class="control-label danger" for="sendMailReceivers">收件人：</label>
                <div class="controls">
                    <input id="sendMailReceivers" type="text"/>&nbsp;&nbsp;<span class="label label-important">多个收件人以分号隔开</span>
                </div>
            </div>
            
            <div class="control-group">
                <label class="control-label danger" for="sendMailContent">正文：</label>
                <div class="controls">
                	<textarea id='sendMailContent'></textarea>
                </div>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true" onclick='sendMailCancel()'>取消</button>
        <button class="btn btn-primary" onclick="sendMailSubmit()" id='mail_send_ok'>发送</button>
    </div>
</div>


<!-- 配置管理标签的div -->
<div id="cfgTagDiv" class="modal hide fade" style="z-index:99999" tabindex="-1" role="dialog" aria-labelledby="tag modal" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h5>我的标签配置</h5>
  </div>
  <div class="modal-body">
    <table class="table table-hover" id='tagNameGrid'>
    	<thead><tr><th>标签名</th><th>操作</th></tr></thead>
    	<tbody id="tag-cfg-table">
    	</tbody>
    </table>
    <button class="btn btn-danger" data-toggle="modal" onclick="addTagClassify()">新增</button>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
    <button class="btn btn-primary" onclick="saveTagClassifyModifyResult()">保存修改</button>
  </div>
</div>

<!-- 新增标签 -->
<div id="cfgNewTagDiv" class="modal hide fade" style="z-index:1000000" tabindex="-1" role="dialog" aria-labelledby="tag modal" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <div>
    	<h5 id="myModalLabelTag">新建标签</h5>
    </div>
  </div>
  <div class="modal-body">
  	<form class="form-inline">
  		<label>标签名称：</label>
  		<input type="text" id='tagName' placeholder="标签名">
  		<input type="hidden" id='modifyTagId'>
  	</form>
  	<form class="form-inline">
  		<label>标签颜色：</label>
  		<input type="text" id='tagColor' >
  	</form>
	
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
    <button class="btn btn-primary" onclick="addOrModifyClassify()">确定</button>
  </div>
</div>

<!-- 添加引用数据 -->
<div id="cfgRefQueryDiv" class="large-modal modal hide fade" tabindex="-1" role="dialog" aria-labelledby="display modal" aria-hidden="true">
  <div class="modal-header">
	   <div class="pull-right" style="margin-right:10px;">
			<form class="form-inline" style="margin-top:5px;margin-left:200px;">
				表单：<select id ="searchTemplateId" class="noSearch" style="width:200px;cursor:pointer;">
			  	</select>
			  	
				<select id ="searchType" class="noSearch" style="width:80px;cursor:pointer;">
				  	<option value='id'>编号</option>
				  	<option value='title'>标题</option>
				  	<option value='description'>描述</option>
			  	</select>
			  <input id="searchWord" type="text" placeholder="Search"/>
			  <button class="btn" style="height:30px;margin-left:-5px;" onclick="searchDatas(); return false;"><img src="images/search.png" style="width: 16px; vertical-align:text-bottom"/></button>
			</form>
		</div>
   		<h5>添加任务</h5>
  </div>
   <div class="modal-body">
		<div class="row-fluid main-content">
			<div class="main-grid-outer" id='main-grid-outer' style="left:0px !important; width:100% !important;">
				<table class="table table-bordered table-condensed">
					<thead id="main-grid-header">
					</thead>
					<tbody id='main-grid-content'>
					</tbody>
				</table>
			</div>
		</div>
		
		<input type="hidden" id="filterId"/>
		<input type="hidden" id="fieldId" value="<%=fieldId%>"/>
		<input type="hidden" id="dataType" value="<%=dataType%>"/>
   </div>
  
  <div class="modal-footer">
  		<div class="pull-left">
			<form class="form-inline" style="margin:0px;">
				<input type="text" id="current-page" class="input-mini input-super-mini" value=1 />
				<label>/</label>
				<label id="totalPage"></label>页 共
				<label id="totalCount"></label>条
				<button class="btn btn-mini" type="button" id="prev-page"><i class=" icon-chevron-left"></i></button>
				<button class="btn btn-mini" type="button" id='next-page'><i class=" icon-chevron-right"></i></button>
			</form>
		</div>
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
    <button class="btn btn-danger" onclick="executeAddRefSubmit();">添加</button>
  </div>
</div>

<!-- 查看流程 -->
<div id="flowReadDiv" class="modal hide fade" style="width:1190px;height:680px;margin-left:-600px;" tabindex="-1" role="dialog" aria-labelledby="display modal" aria-hidden="true">
   <div class="modal-header">
       <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
       <h5>流程查看</h5>
   </div>
   <div class="modal-body" style="height:640px;max-height:640px;padding:0px;overflow:hidden;">
   		<iframe id="flowIframe" style="width: 1340px;height: 710px;margin-left: -112px;margin-top: -85px;" frameborder="0" src="" scrolling="no"></iframe>
   </div>
</div>


<input type="hidden" id="objId"/>
</body>
</html>